//
//  ViewController.h
//  BackgroundPlayAudio
//
//  Created by 大宝 刘 on 11-12-7.
//  Copyright (c) 2011年 北京帷幄昊合数字娱乐科技有限公司. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>

@interface ViewController : UIViewController <AVAudioPlayerDelegate> {
    UIBackgroundTaskIdentifier bgTaskId;
}

@property (strong, nonatomic) AVAudioPlayer *audioPlayer;

- (void)playAudio:(NSString *) fileName;

- (IBAction)playButton:(id)sender;

@end
